Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emergency Bug Fix: Fixed order dependent CSRF spec. #444

Merged
merged 2 commits into from
Dec 13, 2017

Conversation

elorest
Copy link
Member

@elorest elorest commented Dec 13, 2017

Description of the Change

CSRF tests randomly fail depending on the system they're ran on.
This is due to different file systems loading files in different orders.
Fixed by loading settings from env file again at the beginning of crsf_spec.

@@ -12,7 +12,7 @@ CURRENT_DIR = Dir.current

Amber.environment_path = "./spec/support/config"
Amber.env=(ENV[Amber::AMBER_ENV])
Amber.settings.redis_url = ENV["REDIS_URL"]? || Amber.settings.redis_url
Amber.settings.redis_url = ENV["REDIS_URL"] if ENV["REDIS_URL"]?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@elorest elorest merged commit 439175e into master Dec 13, 2017
@elorest elorest deleted the is/emergency_test_fix branch December 13, 2017 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants